import { HttpSrv } from 'lfun-bg-comp';
import { Result } from '..';

export const stopTask = (task_id: string): Result<Promise<any>> => {
  return HttpSrv().patch('/school/v1/task/', { params: { task_id, action_type: 'stop' } });
};
